{% extends "base.jinja" %}

{% block title %}授权失败{% endblock %}

{% block css %},main.css{% endblock %}

{% block main %}
	<style>
	.site-top, .footer {display:none;}
	.auth-fails {position:absolute;top:50%;left:50%;margin:-50px 0 0 -200px;width:400px;height:100px;text-align:center;text-shadow:0 1px 0 #fff;color:#888;}
		.auth-fails b {font-size:20px;font-weight:100;}
		.auth-fails p {font-size:12px;}
	</style>
	<div class="auth-fails">
		<b>获取授权失败~</b>
		<p><span id="seconds">3</span>秒后关闭页面</p>
	</div>
{% endblock %}

{% block script %}
<script>
$(function(){
	var count = 3;
	var timer = setInterval(function(){
		if(count == 0){
			clearInterval(timer);
			window.close();
		}
		$('#seconds').html(count);
		count = count - 1;
	}, 1000);
})
</script>
{% endblock %}